@forelse($activitys as $activity)
<tr>
	<td>{{$activity->name}}</td>
	<td>{{$activity->created_at}}</td>
	<td>{{$activity->days}}</td>
	<td>{{$activity->start ? '已发送活动短信' : '等待短信发送'}}</td>
	<td>
		@php
			if($activity->start_time){
				echo $activity->start_time . '至'. date('Y-m-d H:i:s',strtotime('+'.$activity->days.' days',strtotime($activity->start_time)));
			}else{
				echo '活动暂未开始';
			}
		@endphp
	</td>
	<td><label data-status="{{$activity->status}}" class="switch {{$activity->status ? 'active' : ''}}"></label></td>
	<td><span id="edit" data-id="{{$activity->id}}">编辑</span> | <span id="del">删除</span></td>
</tr>
@empty
<div>	
	<tr class="no_data_tr"><td colspan="7"><span>当前暂无活动</span></td></tr>	
</div>
@endforelse